<?php echo $header; ?>
<div id="content">
<div class="breadcrumb">
  <?php foreach ($breadcrumbs as $breadcrumb) { ?>
  <?php echo $breadcrumb['separator']; ?><a href="<?php echo $breadcrumb['href']; ?>"><?php echo $breadcrumb['text']; ?></a>
  <?php } ?>
</div>
<?php if ($error_warning) { ?>
<div class="warning"><?php echo $error_warning; ?></div>
<?php } ?>
<div class="box">
  <div class="heading">
    <h1><?php echo $heading_title; ?></h1>
    <div class="buttons"><a onclick="javascript : megamenuSubmit();" class="button"><?php echo $button_save; ?></a><a onclick="location = '<?php echo $cancel; ?>';" class="button"><?php echo $button_cancel; ?></a></div>
  </div>
  <div class="content">
		<!-- start menu -->  
			<div id="pro-menu-erea">
				<div class="left">
					<div class="data-block"><!-- category -->  
						<h3 class="data-title">Category</h3>
						<ul>
						<?php foreach( $categories as $category) : ?>
							<li class=""><label><input class="category" type="checkbox" value="<?php echo $category['category_id'];?>" data="<?php echo $category['name'];?>" /><?php echo $category['name'];?></label></li>
						<?php endforeach;?>
						</ul>
						<a class="add-to-menu" href="javascript:void(0);">Add To Menu</a>
					</div>
					<div class="data-block"><!-- infomations --> 
						<h3 class="data-title">Infomation</h3>					
						<ul>
						<?php foreach( $informations as $infor) : ?>
							<li class=""><label><input class="infomation"  type="checkbox" value="<?php echo $infor['id'];?>" data="<?php echo $infor['title'];?>" /><?php echo $infor['title'];?></label></li>
						<?php endforeach;?>
						</ul>
						<a class="add-to-menu" href="javascript:void(0);">Add To Menu</a>
					</div>
					<div class="data-block"><!-- category -->  
						<h3 class="data-title">Manufacturer</h3>		
						<ul>
						<?php foreach( $manufacturers as $manufacturer) : ?>
							<li class=""><label><input class="manufacturer"  type="checkbox" value="<?php echo $manufacturer['id'];?>" data="<?php echo $manufacturer['name'];?>" /><?php echo $manufacturer['name'];?></label></li>
						<?php endforeach;?>
						</ul>
						<a class="add-to-menu" href="javascript:void(0);">Add To Menu</a>
					</div>
					<div class="data-block custom-menu"><!-- category -->  
						<h3 class="data-title">Custom Menu</h3>
						<div>
							<p><label>Title : </label><input class="title" type="text" value="Type title here" /></p>
							<p><label>Url : </label><input class="url" type="text" value="Type url here" /></p>
						</div>
						</ul>
						<a class="add-to-menu_custom" href="javascript:void(0);">Add To Menu</a>
					</div>
				</div>
				<div class="right">				
					<form action="<?php echo $action; ?>" method="post" enctype="multipart/form-data" id="form">
						<div class="dd" id="menu_area">
							<ol class='dd-list'>
								<?php echo $this->model_module_pro_megamenu->getMenuHtml(0);?>
							</ol>	
						</div>
						<input id="custom_data" type="hidden" name="custom_data" value="" />
					</form>
				</div>
			</div>
		<!-- end menu --> 	
    
  </div>
</div>
<?php echo $footer; ?>